package cn.slipi.common.exception;

import cn.slipi.common.enums.ResponseCode;
import lombok.Data;

@Data
public class BizException extends RuntimeException {
    private Integer code;
    private String msg;

    public BizException(ResponseCode responseCode) {
        this.code = responseCode.code();
        this.msg = responseCode.msg();
    }
}
